PutLog("File "file" already queued for "site,60,10)
if work ~= NULL then call XfqUnlockWork(work)
end
call XfqFlushQueue(site_address)
call XfqDropObject(site_address)
if work ~= NULL then do
call XfqDropObject(work)
if isftn then call PutLog('Queued 'file' as 'sendas' for 'hisaddress.zone':'hisaddress.net'/'hisaddress.node'.'hisaddress.point' Pri:'priority 'Dsp:'flags+queuectl,10,10)
else call PutLog('Queued 'file' as 'sendas' for 'site_address' Pri:'priority 'Dsp:'flags+queuectl,10,10)
end
call XfqClose()
exit
addarcmail:
tmpext=upper(left(ext,2))
if datatype(right(ext,1),'n') & (tmpext="MO" | tmpext="TU" | tmpext="WE" | tmpext="TH" | tmpext="FR" | tmpext="SA" | tmpext="SU") then do